Xbasic

UI_MODELESS_DLG_EXIST Function

Syntax

Result_Flag as L = UI_MODELESS_DLG_EXIST(C title)

Arguments

Result_Flag

.T. = The dialog box exists. .F. = The dialog box does not exist.

title

Character

Description

Returns TRUE if named modeless dialog box exists.

Discussion

The UI_MODELESS_DLG_EXIST() function indicates whether a modeless dialog box exists.

Example

This example creates a modeless dialog, then uses UI_MODELESS_DLG_EXIST()to see if it exists.

ui_modeless_dlg_box("Basic Modeless Dialog", <<%dlg%
{xmargin=10}
{ymargin=2}
<20,2Click Here!MyButton>
%dlg%, <<%code%
if a_dlg_button="MyButton"
ui_modeless_dlg_close("Basic Modeless Dialog")
end if
%code%)
if (UI_MODELESS_DLG_EXIST("Basic Modeless Dialog")=.t.) then
ui_msg_box("UI_MODELESS_DLG_EXIST()", "Found it!")
end if

See Also